package com.wish.wishsystem_management.service.impl;

import com.wish.wishsystem_management.entity.SysDept;
import com.wish.wishsystem_management.mapper.SysDeptMapper;
import com.wish.wishsystem_management.service.ISysDeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 部门管理 服务实现类
 * </p>
 *
 * @author zhaiwj
 * @since 2021-03-22
 */
@Service
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> implements ISysDeptService {

    @Override
    public List<SysDept> sysDeptListVo() {
        return baseMapper.sysDeptListVo();
    }

    @Override
    public List<Long> queryDetpIdList(long id) {
        return baseMapper.detpbyIdList(id);
    }

    @Override
    public SysDept findByDeptId(Long id) {
        return baseMapper.selectByIdVo(id);
    }

    @Override
    public List<SysDept> queryList2(Integer id) {
        return baseMapper.queryList2(id);
    }
    @Override
    public SysDept getDeptByName(String name) {
        return baseMapper.getDeptByName(name);
    }

    @Override
    public void save2(SysDept sysDeptEntity) {
        baseMapper.save2(sysDeptEntity);
    }
}
